package com.liy.cloud.common.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.liy.cloud.common.system.dao.SysInfoDao;
import com.liy.cloud.common.system.entity.SysInfoEntity;
import com.liy.cloud.common.system.service.SysInfoService;
import com.das.framework.common.dao.IBaseDao;
import com.das.framework.common.service.impl.BaseServiceImpl;

/**
 * @Author: liyang
 * @Date: 2018/5/8 16:39
 **/
@Service
public class SysInfoServiceImpl extends BaseServiceImpl<SysInfoEntity,String> implements SysInfoService {

    @Autowired
    private SysInfoDao sysInfoDao;

    @Override
    public IBaseDao<SysInfoEntity, String> getDao() {
        return sysInfoDao;
    }

    @Override
    public void deleteBatch(List<String> ids) {
        for(String id : ids){
            sysInfoDao.deleteByPrimaryKey(id);
        }
    }
}
